﻿using DuckGame1._0.Fly;
using DuckGame1._0.Quack;
using System;
using System.Collections.Generic;
using System.Text;

namespace DuckGame1._0.Duck
{
    /// <summary>
    /// 所有鸭子的父类
    /// </summary>
   public class DuckBase
    {
        //所有鸭子的行为
        public string Swim()
        {
            return "我是Duck，我会游泳！";
        }
        //展示效果
        public virtual string Display()
        {
            return "";
        }
        #region"个性行为"
        //飞的行为
        public IFlyBehavior flyBehavior { get; set; }
        //叫的行为
        public IQuackBehavior QuackBehavior { get; set; }
        #endregion 
    }
}
